<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="/static/admin/jsp/include.jsp"%>
    <style type="text/css">
        .textbox.textbox-focused .textbox-addon,
        .textbox.textbox-focused .textbox-text{
            background: #eee!important;
        }
    </style>
    <script type="text/javascript">
        var id = "${id}";

        $(function() {

            if(id != ''){
                $.post(sy.contextPath + '/evidence/findById', {
                    id : id,
                }, function(result) {
                    if (id != '') {
                        //return console.log(result.headerInfo)
                        //$('form').form('load', result);
                       // console.log(result.headerInfo);
                        var array = eval(result.headerInfo);
                        console.log(array);
                        var html = '';
                        for(var i = 0; i<array.length; i++){
                            html += '<tr>'
                            html += '<th style="width: 20%">'+array[i].key+'</th>'
                            html += '<td>'+array[i].value+'</td>'
                            html += '</tr>'
                        }
                        $(".formtable").append(html);
                        parent.$.messager.progress('close');
                    }
                },'json')
            }
        });

    </script>
</head>
<body>
<form id="form" method="post">
    <input name="id" type="hidden" />
    <div style="padding:15px;font-size: 12px">
        <table style="table-layout:fixed;" border="0" cellspacing="0" class="formtable">

        </table>
    </div>
</form>
</body>
</html>